package com.spark.teaching.sparkfeign.hystric;

import com.spark.teaching.sparkfeign.service.ScheduleServiceHi;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ScheduleServiceHi服务的熔断器
 *
 * @author zhaoyiwu
 * @create 2017-09-30 14:37
 **/
@Component
public class ScheduleServiceHiHystric implements ScheduleServiceHi{

    @Override
    public String sayHiFromClientOne(String name) {
        return "sorry,"+name;
    }

}
